package test;

/*
 * Author: JacksonCoder
 * FileName: demo4
 * Version: 1.0.0
 * Date: 2025/5/8
 */

public class demo4 {

    public static void main(String[] args) {
        // 装箱
        Integer intObj = 100;
        System.out.println("Integer object value: " + intObj);
        // 拆箱
        int intPrimitive = intObj;
        System.out.println("int primitive value: " + intPrimitive);

        // 另外一个基本类型的案例演示（double 和 double）
        Double doubleObj = 3.14;
        System.out.println("Double object value: " + doubleObj);
        double doublePrimitive = doubleObj;
        System.out.println("double primitive value: " + doublePrimitive);

    }

}
